package cn.wolfcode.mongo;

import cn.wolfcode.mongo.domain.User;
import cn.wolfcode.mongo.repository.UserRepository;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class test5 {

     @Autowired
    private UserRepository userRepository;

     @Test
    public void test5(){
         List<User> list = userRepository.findByNameLike("will");
         list.forEach(System.out::println);


     }
}
